added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / VBASPNETHighlightCodeInPage / HighlightCodePage.aspx
blobac10d0c44cd35e60a9fa0035fe876759ffe56b6e
1 <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="HighlightCodePage.aspx.vb"  ValidateRequest="false"  Inherits="VBASPNETHighlightCodeInPage.HighlightCodePage" %>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head id="Head1" runat="server">
7     <title></title>
8     <link href="Styles/HighlightCode.css" rel="stylesheet" type="text/css" />
9 </head>
10 <body>
11     <form id="form1" runat="server">
12     <table border="1" style="height: 98%">
13         <tr>
14             <td style="width: 50%; font-size: 12px">
15                 <strong>Please paste the code in textbox control and choose the language before clicking
16                     the HighLight button </strong>
17             </td>
18             <td style="width: 50%; font-size: 12px">
19                 <strong>Result: </strong>
20             </td>
21         </tr>
22         <tr>
23             <td>
24                 Please choose the language:<asp:DropDownList ID="ddlLanguage" runat="server">
25                     <asp:ListItem Value="-1">-Please select-</asp:ListItem>
26                     <asp:ListItem Value="cs">C#</asp:ListItem>
27                     <asp:ListItem Value="vb">VB.NET</asp:ListItem>
28                     <asp:ListItem Value="js">JavaScript</asp:ListItem>
29                     <asp:ListItem Value="vbs">VBScript</asp:ListItem>
30                     <asp:ListItem Value="sql">Sql</asp:ListItem>
31                     <asp:ListItem Value="css">CSS</asp:ListItem>
32                     <asp:ListItem Value="html">HTML/XML</asp:ListItem>
33                 </asp:DropDownList>
34                 <br />
35                 please paste your code here:<br />
36                 <asp:TextBox ID="tbCode" runat="server" TextMode="MultiLine" Height="528px" Width="710px"></asp:TextBox>
37                 <br />
38                 <asp:Button ID="btnHighLight" runat="server" Text="HighLight" OnClick="btnHighLight_Click" /><asp:Label
39                     ID="lbError" runat="server" Text="Label" ForeColor="Red"></asp:Label>
40             </td>
41             <td>
42                 <div id="DivCode">
43                     <asp:Label ID="lbResult" runat="server" Text=""></asp:Label>
44                 </div>
45             </td>
46         </tr>
47     </table>
48     </form>
49 </body>
50 </html>